<!--
 * @Description: 
 * @Version: 2.0
 * @Autor: 刘世琪
 * @Date: 2021-01-19 13:57:20
 * @LastEditors: Seven
 * @LastEditTime: 2021-01-20 09:17:16
-->
<template>
  <div>
      <li>
        <div>
        <a :href="'/add_course?cid =' + data.id ">{{ data.name }}</a></div>
        <ul v-if="data.children  && data.children.length > 0">
          <mycate v-for="child in data.children" :key="child.id" :data="child" />   
        </ul>  
      </li>

  </div>
</template>

<script>
export default {
    name:"mycate",
    props:['data']

}
</script>

<style>

</style>